package prectise3;

class User{
    private int zhanghao;
    private int mima;
    private String youxiang;
    public void setUser(int zhanghao,int mima,String youxiang){
        this.zhanghao=zhanghao;
        this.mima=mima;
        this.youxiang=youxiang;
    }
    public void setUser(int zhanghao,int mima){
        this.zhanghao=zhanghao;
        this.mima=mima;
    }
    public void say() {
        System.out.println("我的账号是"+zhanghao);
        System.out.println("我的密码是"+mima);
        if (!youxiang.isEmpty()) {
            System.out.println("我的邮箱是"+youxiang);
        }
    }
}

public class UserOperator {
    public static void main(String[] args) {
        User A = new User();
        User B = new User();
        A.setUser(1001, 123456, "1111@22.com");
        A.say();
        System.out.println();
        B.setUser(1002, 123457);
        B.say();
    }
}
